package hackthon.core;


import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * Created by wuwenhao on 15/1/7.
 */
public class MailAuthenticator extends Authenticator{

    public String username;
    public String password;

    public MailAuthenticator(){
        super();
    }

    public MailAuthenticator(String username, String password){
        super();
        this.username=username;
        this.password=password;
    }

    public PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(this.username, this.password);

    }
}
